package com.mall.web.controller.course.app;

import com.mall.common.annotation.Log;
import com.mall.common.core.controller.BaseController;
import com.mall.common.core.domain.AjaxResult;
import com.mall.common.core.page.TableDataInfo;
import com.mall.common.enums.BusinessType;
import com.mall.common.utils.poi.ExcelUtil;
import com.mall.course.swimPlace.domain.dto.SwimPlaceDto;
import com.mall.course.swimPlace.domain.vo.SwimPlaceVo;
import com.mall.course.swimPlace.service.IAppSwimPlaceService;
import com.mall.course.swimPlace.service.ISwimPlaceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 游泳馆Controller
 * 
 * @author mall
 * @date 2024-05-18
 */
@RestController
@RequestMapping("/app/course/swimPlace")
public class AppSwimPlaceController extends BaseController
{
    @Autowired
    private IAppSwimPlaceService swimPlaceService;

    /**
     * 查询游泳馆列表
     */
    @GetMapping("/list")
    public AjaxResult list()
    {
        List<SwimPlaceVo> list = swimPlaceService.selectSwimPlaceList();
        return success(list);
    }

}
